﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using SHJunketingDAL;
using SHJunketingModel;

namespace SHJunketingBLL
{
    public class HospitalBll
    {
        public static DataTable GetAllJigou()
        {
            return HospitalDal.GetJigou();
        }

        public static Hospital GetJigouById(int id)
        {
            return HospitalDal.GetJigouById(id);
        }

        public static DataTable GetHospitalInfo(string name)
        {
            return HospitalDal.GetHospitalInfo(name);
        }

        public static int DeleteC_HospitalByRoleId(string id)
        {
            return HospitalDal.DeleteC_HospitalInfoByRoleId(id);
        }


        public static void ModifyHospital(Hospital hospital)
        {
            HospitalDal.ModifyC_HospitalInfo(hospital);
        }


        public static Hospital AddC_HospitalInfo(Hospital hospital)
        {
            return HospitalDal.AddC_HospitalInfo(hospital);
        }
    }
}
